package xyz.labradormm.spider.enums;

/**
 * 爬虫类型
 */
public enum SpiderType {

    instagram(1, "instagram", "https://www.instagram.com/graphql/query/?query_hash=%s&variables=%s"),
    youtube(2, "youtube", "https://www.youtube.com/youtubei/v1/browse?key=%s"),
    ;

    private int code;

    private String desc;

    private String targetUrl;

    SpiderType(int code, String desc, String targetUrl) {
        this.code = code;
        this.desc = desc;
        this.targetUrl = targetUrl;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public String getTargetUrl() {
        return targetUrl;
    }

}
